import request from '@/api/request.js'


// 新建修改商户
function merchant(data){
	return request({
		url: `/v2merchant/merchant/create`,
		method: 'POST',
		data
	})
}
//新增修改门店
function operate(data){
	return request({
		url: `/v2merchant/shop/operate`,
		method: 'POST',
		data
	})
}
//获取商户列表
function merchantlist(data){
	return request({
		url: `/v2merchant/merchant/list`,
		method: 'POST',
		data
	})
}
//获取门店列表
function shop(data){
	return request({
		url: `/v2merchant/shop/all_list`,
		method: 'POST',
		data
	})
}
//获取门店详情
function shoplist(data){
	return request({
		url: `/v2merchant/shop/info`,
		method: 'POST',
		data
	})
}
export{
	merchant,operate,merchantlist,shop,shoplist
}